PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Control Manager >

Programming With the Mac OS 8.5 Control Manager


GetControlRegion

Obtains the region corresponding to a given control part.

pascal OSStatus GetControlRegion (
                     ControlHandle inControl,
                     ControlPartCode inPart,
                     RgnHandle outRegion);
inControl
A value of type ControlHandle . Pass a handle to the control containing the part for which a region is to be obtained.
inPart
A value of type ControlPartCode . Pass a constant identifying the control part for which a region is to obtained; you may specify the kControlStructureMetaPart and kControlContentMetaPart control part codes, as well as the standard control part codes. See Control Part Code Constants for descriptions of possible values.
outRegion
Pass a value of type RgnHandle . On return, GetControlRegion sets the region to contain the actual dimensions and position of the control part, in local coordinates.
function result
A result code. See Result Codes for the Mac OS 8.5 Control Manager .

VERSION NOTES

Available with Mac OS 8.5 and later.


© 1999 Apple Computer, Inc. — (Last Updated 20 Jan 99)